/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.common.model;

import java.util.ArrayList;
import java.util.List;

/**
 * layui 表格数据封装
 * 
 * @author limk
 * @date 2018年2月12日 下午8:57:58
 * @version 1.0
 */
public class LayTable<T> {

	private Integer code = 0;
	private String msg = "";
	private Long count = 0L;
	private List<T> data = new ArrayList<>();

	public LayTable() {
		super();
	}

	public LayTable(List<T> data) {
		super();
		this.data = data;
	}

	public LayTable(Long count, List<T> data) {
		super();
		this.count = count;
		this.data = data;
	}

	public LayTable(Integer code, String msg, Long count, List<T> data) {
		super();
		this.code = code;
		this.msg = msg;
		this.count = count;
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

}
